package controller.frontOffice;

import java.io.Serializable;

import javax.enterprise.context.RequestScoped;
import javax.inject.Named;

import org.primefaces.model.map.DefaultMapModel;
import org.primefaces.model.map.LatLng;
import org.primefaces.model.map.MapModel;
import org.primefaces.model.map.Marker;

@Named
@RequestScoped
public class MapController implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private MapModel simpleModel;

	public MapController() {
		simpleModel = new DefaultMapModel();
		
		//Shared coordinates
		LatLng coord1 = new LatLng(48.870883,2.274145);

		
		//Basic marker
		simpleModel.addOverlay(new Marker(coord1, "Konyaalti"));

	}

	public MapModel getSimpleModel() {
		return simpleModel;
	}
}
					